package com.sld.integrate.service;

import com.sld.integrate.domain.RecDevWorkSequence;
import com.sld.integrate.domain.RecDevWorkStandard;
import com.sld.integrate.vo.CalculateTuple;

public interface IDevWorkSequenceService {

    RecDevWorkSequence queryDevRecentlyWorkInfo(String devId);



    RecDevWorkSequence insert(RecDevWorkSequence sequence);

    int update(RecDevWorkSequence sequence);


    /**
     * 该设备编号，需要启动一个新的工作序号。
     * 如果原来有一个超时没有结束的，要结束上一个，然后创建新的。
     * @param devId
     * @return
     */
    RecDevWorkSequence createOrGetRecentlyWorkSequence(String devId);

    RecDevWorkSequence createWorkSequence(String devId, String seqNo);

    int createWorkSequenceConcreteBinding(RecDevWorkSequence sequence);

    //为工作序列，回填标定值结论。
    int saveCalibrationValue(Integer seqId, CalculateTuple tuple);

    RecDevWorkStandard queryCalibrationValue(Integer id);
}
